import request from '@/utils/request.js'

//获取所有菜单项
export function getMenuList() {
  return request({
    url: '/ScmDo',
    method: 'get'
  })
}

//获取用户分配的菜单项
export function getUserMenuList(mid,usercode){
  return request({
    url:`/ScmDo/checkPermission?mid=${mid}&usercode=${usercode}`,
    method: 'get'
  })
}
